package com.ruoyi.game.websocket.event;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;
import org.springframework.web.socket.WebSocketSession;

/** 把原始 JSON 文本抛给业务 Dispatcher */
@Getter
public class WsIncomingEvent extends ApplicationEvent {
    private final WebSocketSession session;
    private final String rawJson;

    public WsIncomingEvent(WebSocketSession session, String json) {
        super(session);
        this.session = session;
        this.rawJson = json;
    }
}
